package com.apollographql.apollo.internal.interceptor;

import com.apollographql.apollo.internal.interceptor.ApolloServerInterceptor;
import com.kt.Metadata;
import com.kt.jvm.internal.Intrinsics;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import okio.BufferedSink;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000#\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\b\u0010\u0002\u001a\u00020\u0003H\u0016J\n\u0010\u0004\u001a\u0004\u0018\u00010\u0005H\u0016J\u0010\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH\u0016¨\u0006\n"}, d2 = {"com/apollographql/apollo/internal/interceptor/ApolloServerInterceptor$Companion$httpMultipartRequestBody$2$1", "Lokhttp3/RequestBody;", "contentLength", "", "contentType", "Lokhttp3/MediaType;", "writeTo", "", "sink", "Lokio/BufferedSink;", "apollo-runtime"}, k = 1, mv = {1, 4, 0})
/* compiled from: ApolloServerInterceptor.kt */
public final class ApolloServerInterceptor$Companion$httpMultipartRequestBody$2$1 extends RequestBody {
    final /* synthetic */ ApolloServerInterceptor.FileUploadMeta $fileUploadMeta;
    final /* synthetic */ MediaType $mimetype;

    ApolloServerInterceptor$Companion$httpMultipartRequestBody$2$1(MediaType $captured_local_variable$0, ApolloServerInterceptor.FileUploadMeta $captured_local_variable$1) {
        this.$mimetype = $captured_local_variable$0;
        this.$fileUploadMeta = $captured_local_variable$1;
    }

    @Override // okhttp3.RequestBody
    public MediaType contentType() {
        return this.$mimetype;
    }

    @Override // okhttp3.RequestBody
    public long contentLength() {
        return this.$fileUploadMeta.getFileUpload().contentLength();
    }

    @Override // okhttp3.RequestBody
    public void writeTo(BufferedSink sink) {
        Intrinsics.checkParameterIsNotNull(sink, "sink");
        this.$fileUploadMeta.getFileUpload().writeTo(sink);
    }
}
